package com.wantup.demo03xd.part05.communication.demo6;

/**
 * @author Zhaoluowei
 * @version 1.0
 * @date 2019/7/3 15:28
 */
public class TestMain {

    public static void main(String[] args) {
        Medium medium = new Medium();

        new Thread(new Consumer(medium)).start();
        new Thread(new Consumer(medium)).start();
        new Thread(new Consumer(medium)).start();

        new Thread(new Product(medium)).start();
        new Thread(new Product(medium)).start();
        new Thread(new Product(medium)).start();
        new Thread(new Product(medium)).start();
        new Thread(new Product(medium)).start();
    }

}
